package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum Status {

    status_01(101, "有效"),
    status_02(102, "无效");

    private Integer status;
    private String statusName;


    public static String getStatusValue(int index) {
        for (Status value : Status.values()) {
            if (value.getStatus() == index) {
                return value.getStatusName();
            }
        }
        return null;
    }
}
